package net.llz.all_factory;

import net.llz.all_ali.AliOrderFactory;
import net.llz.all_wechat.WechatOrderFactory;

public class FactoryProducer {
    public static OrderFactory getFactory(String type) {

        if (type.equalsIgnoreCase("WECHAT")) {
            return new WechatOrderFactory();

        } else if (type.equalsIgnoreCase("ALI")) {

            return new AliOrderFactory();
        }

        return null;

    }

}
